package cate.game.play.skill.passive.talent;

import cate.game.play.config.PlayCfgArgs;
import cate.game.play.proce.action.ctx.ActionCtx;
import cate.game.play.skill.passive.PassiveHandler;

/**
 * 复活后增加自身36%攻击，持续2回合
 */
public class 活力PH extends PassiveHandler {

	private int buff;

	//buff=？？
	@Override
	public void parse(String code) {
		PlayCfgArgs args = new PlayCfgArgs(code);
		buff = args.getInt("buff", 0);
	}

	@Override
	public void onResurrect(ActionCtx action) {
		skill.owner.buff.tryAddByTid(action, buff);
	}
}
